package snaptest.core;

import org.junit.runners.model.FrameworkMethod;

class MethodInvoker {

	private final FrameworkMethod testMethod;
	private final Object target;

	MethodInvoker(FrameworkMethod testMethod, Object target) {
		this.testMethod = testMethod;
		this.target = target;
	}
	
	Object invokeExplosively() throws Throwable {
		return testMethod.invokeExplosively(target);
	}

}
